﻿using Styx.TreeSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Styx.WoWInternals.WoWObjects;
using Styx;
using Styx.WoWInternals;


#region [Method] - Class Redundancy

using HkM = SinisterD.Core.Managers.Hotkey_Manager;
using SB = SinisterD.Core.Helpers.Spell_Book;
using TM = SinisterD.Core.Managers.Talent_Manager;
using U = SinisterD.Core.Unit;
using S = SinisterD.Core.Spell;


#endregion
namespace SinisterD.Core.Helpers
{
    class Condition_Helper
    {
        private static LocalPlayer Me { get { return StyxWoW.Me; } }
        private static WoWUnit currentTarget { get { return StyxWoW.Me.CurrentTarget; } }

        public static bool CPGenEnable()
        { return (U.CP < 5 || !U.auraExists(currentTarget, SB.auraRevealingStrike, true) || TM.HaveTalent(TM.RogueTalents.Anticipation) && U.AntiStacks <= 3 && !U.auraExists(Me, SB.auraDeepInsight)); }

        public static bool FinisherEnable()
        { return (U.CP == 5 && U.auraExists(currentTarget, SB.auraRevealingStrike, true) && (U.auraExists(Me, SB.auraDeepInsight) || !TM.HaveTalent(TM.RogueTalents.Anticipation) || TM.HaveTalent(TM.RogueTalents.Anticipation) && U.AntiStacks >= 4)); }

    }
}
